//
//  CustomRefreshFooter.m
//  PCode
//
//  Created by uuu9 on 16/3/7.
//  Copyright © 2016年 Jason. All rights reserved.
//

#import "CustomRefreshFooter.h"

@implementation CustomRefreshFooter

- (void)prepare
{
    [super prepare];
    // 设置即将刷新状态的动画图片（一松开就会刷新的状态）
    NSMutableArray *refreshingImages = [NSMutableArray array];
    for (NSUInteger i = 1; i<=34; i++) {
        UIImage *image = [UIImage imageNamed:[NSString stringWithFormat:@"load_live_%zd", i]];
        [refreshingImages addObject:image];
    }
       self.refreshingTitleHidden = YES;
    [self setImages:refreshingImages forState:MJRefreshStateIdle];
    [self setImages:refreshingImages forState:MJRefreshStatePulling];
    
    // 设置正在刷新状态的动画图片
    [self setImages:refreshingImages forState:MJRefreshStateRefreshing];

}
@end
